﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.ETL.DataServiceInterface
{
    /// <summary>
    /// 可以被发现的接口
    /// </summary>
    public interface IDetectable
    {
        /// <summary>
        /// 枚举可用的数据源
        /// </summary>
        /// <param name="service"></param>
        /// <returns></returns>
        List<TDataSource> EnumerateSources(DataServiceInfo service);

        /// <summary>
        /// 枚举参数
        /// </summary>
        /// <param name="source"></param>
        /// <returns></returns>
        List<TDataSourceParameter> EnumeratePrameters(DataSourceInfo source);

        List<TDataSourceColumn> EnumerateColumns(DataSourceInfo source);
    }
}
